import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/risk'
// 获取基准线
export const getVal = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/config/get',
    method: 'post',
    data
  })

// 保存配置
export const saveVal = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/config/score-stable',
    method: 'post',
    data
  })
// 评分卡稳定性分析按月统计
export const getScore = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/risk-report/score-stable-by-month',
    method: 'post',
    data
  })
